#ifndef _RF_H
#define _RF_H
//#include "types.h"
//#include "stm8s_type.h"
//#include "stm8s_gpio.h"
#include "main.h"
#define     rf               P13
#define     second           0x4000

extern uchar ir_date[4],RF_BUFF;
extern u8 Rf_ID[4];
extern uint duibi,dptime;
extern uchar key,tim,key_save,kadd,kpush,setjs,learn_t;
extern BitStatus  lf,lingma,tongbu,yj,flag_dz,cont_Addr_N;

//extern void SPI_text(unsigned char  code);
//extern  void Delay_MS(unsigned int VALUE_1);



void rf_chuli(void);
void rf_caiji(void);
void key_chuli(void);



#endif
